package cn.tedu.boot1002.controller;

import cn.tedu.boot1002.entity.Student;
import cn.tedu.boot1002.mapper.StudentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/student/")
public class StudentController {
    @Autowired
    StudentMapper mapper;

    @RequestMapping("selectByCid")
    public List<Student> select(int id){
        return mapper.selectByCid(id);
    }
}
